OtherMavlinkCommand

class OtherMavlinkCommand(commandType: Int, frame: MavlinkCommand.Frame = Frame.RELATIVE, val parameters: DoubleArray) : MavlinkCommand

Any MAVLink command.

Parameters

commandType

the integer that describes the type of the MAVLink command

parameters

generic command parameters

Constructors

Link copied to clipboard
constructor(commandType: Int, frame: MavlinkCommand.Frame = Frame.RELATIVE, param1: Double = Double.NaN, param2: Double = Double.NaN, param3: Double = Double.NaN, param4: Double = Double.NaN, param5: Double = Double.NaN, param6: Double = Double.NaN, param7: Double = Double.NaN)
constructor(commandType: Int, frame: MavlinkCommand.Frame = Frame.RELATIVE, parameters: DoubleArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The integer that describes the type of the MAVLink command.

Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun parameter(@IntRange(from = 0, to = 6) atIndex: Int): Double

Returns the parameter at the given index.

Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.